package com.huilian.iotbox.admin.wap.controller;

import com.huilian.iotbox.admin.wap.service.PayCompanyService;
import com.huilian.iotbox.data.common.ServerResponse;
import com.huilian.iotbox.data.vo.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zengxilin
 * @CreateDate: 2021-09-30 16:10
 * @Description:
 */
@RestController
@RequestMapping("/api/payCompany")
public class PayCompanyController extends UserInfoController {
    @Autowired
    private PayCompanyService payCompanyService;
    @GetMapping("/findPayCompanyList")
    public ServerResponse findPayCompanyList(HttpServletRequest request){
        UserInfo userInfo = super.getLoginUserInfo(request);
        return payCompanyService.findPayCompanyList(1);
    }
}
